import { request } from '@/network/http.js'
export const login = p => request('post', '/login/verify_second', p) // 后台登录
export const delImg = p => request('post', '/school/delete_img', p) // 删除图片

export const categoryList = p => request('post', '/school/category_list', p) // 获取分类列表
export const categoryEdit = p => request('post', '/school/category_edit', p) // 获取单个分类
export const categoryDelete = p => request('post', '/school/category_delete', p) // 删除分类
export const categoryInc = p => request('post', '/school/category_inc', p) // 添加分类
export const categorySave = p => request('post', '/school/category_save', p) // 编辑分类

export const scopeList = p => request('post', '/school/scope_list', p) // 获取经营范围列表
export const scopeEdit = p => request('post', '/school/scope_edit', p) // 获取单个经营范围
export const scopeDelete = p => request('post', '/school/scope_delete', p) // 删除经营范围
export const scopeInc = p => request('post', '/school/scope_inc', p) // 添加经营范围
export const scopeSave = p => request('post', '/school/scope_save', p) // 编辑单个经营范围

export const configList = p => request('post', '/config/list', p) // 系统配置列表
export const configOnly = p => request('post', '/config/only', p) // 获取单个配置
export const configEdit = p => request('post', '/config/edit', p) // 编辑系统配置

export const platList = p => request('post', '/plat/list', p) // 获取平台方列表
export const platOnly = p => request('post', '/plat/only', p) // 获取单个平台方
export const platDelete = p => request('post', '/plat/delete', p) // 删除平台方
export const platAdd = p => request('post', '/plat/add', p) // 添加平台方
export const platEdit = p => request('post', '/plat/edit', p) // 编辑平台方
export const platChangePwd = p => request('post', '/plat/changePwd', p) // 获取单个经营范围

export const platSimpleList = p => request('post', '/plat/simpleList', p) // 获取简单平台方列表
export const operateSuperList = p => request('post', '/operate/superList', p) // 获取单个经营范围
export const operatePlatList = p => request('post', '/operate/platList', p) // 获取运营列表
export const operateOnly = p => request('post', '/operate/only', p) // 获取单个运营
export const operateDelete = p => request('post', '/operate/delete', p) // 删除单个运营
export const operateAdd = p => request('post', '/operate/add', p) // 添加运营方
export const operateEdit = p => request('post', '/operate/edit', p) // 编辑运营方
export const operateChangePwd = p => request('post', '/operate/changePwd', p) // 修改密码
export const operategetConf = p => request('post', '/operate/getConf', p) // 运营获取配置
export const operateEditConf = p => request('post', '/operate/confEdit', p) // 运营编辑配置
export const getSenderList = p => request('post', '/operate/getSenderList', p) // 获取骑手列表
export const getOvertimeList = p => request('post', '/operate/getOvertimeList', p) // 获取超时配送列表
export const overtimeDetail = p => request('post', '/operate/overtimeDetail', p) // 获取超时详情

export const operateSimpleList = p => request('post', '/operate/simpleList', p) // 获取运营商简单列表
export const schoolList = p => request('post', '/school/school_list', p) // 获取学校列表
export const schoolFind = p => request('post', '/school/school_find', p) // 获取单个学校
export const deleteSchool = p => request('post', '/school/delete_school', p) // 删除学校
export const schoolIncrease = p => request('post', '/school/increase', p) // 添加学校
export const schoolEdit = p => request('post', '/school/school_edit', p) // 编辑学校

export const financeList = p => request('post', '/finance/list', p) // 获取财务列表
export const financeOnly = p => request('post', '/finance/only', p) // 获取单个财务
export const financeAdd = p => request('post', '/finance/add', p) // 添加财务
export const financeEdit = p => request('post', '/finance/edit', p) // 编辑财务
export const financeDelete = p => request('post', '/finance/delete', p) // 删除财务
export const financeChangePwd = p => request('post', '/finance/changePwd', p) // 修改财务密码

export const statisticalOrderList = p => request('post', '/statistical/orderList', p) // 获取划账列表
export const statisticalDrawInfo = p => request('post', '/statistical/drawInfo', p) // 获取划账详情
export const statisticalDraw = p => request('post', '/statistical/draw', p) // 划账操作

export const getOwnSchool = p => request('post', '/Storied/getOwnSchool', p) // 获取学校列表
export const storiedList = p => request('post', '/Storied/storied_list', p) // 获取宿舍
export const storiedFind = p => request('post', '/Storied/storied_find', p) // 获取单个宿舍楼
export const deleteStoried = p => request('post', '/Storied/delete_storied', p) // 删除宿舍楼
export const StoriedInc = p => request('post', '/Storied/increase', p) // 添加宿舍楼
export const storiedEdit = p => request('post', '/Storied/storied_edit', p) // 编辑宿舍

export const getStoreList = p => request('post', '/operate/getStoreList', p) // 获取商铺列表
export const commentList = p => request('post', '/comment/list', p) // 获取用户评论列表
export const changeShow = p => request('post', '/comment/changeShow', p) // 修改评论是否显示

export const shopList = p => request('post', '/school/shop_list', p) // 获取商户列表
export const editShop = p => request('post', '/school/edit_shop', p) // 编辑商户
export const shopSort = p => request('post', '/school/shop_sort', p) // 商户排序

export const userList = p => request('post', '/school/user_list', p) // 用户列表
export const editUser = p => request('post', '/school/edit_user', p) // 编辑用户
// export const changeShow = p => request('post', '/comment/changeShow', p) // 修改评论是否显示
// export const changeShow = p => request('post', '/comment/changeShow', p) // 修改评论是否显示
// export const changeShow = p => request('post', '/comment/changeShow', p) // 修改评论是否显示
// export const changeShow = p => request('post', '/comment/changeShow', p) // 修改评论是否显示
// export const changeShow = p => request('post', '/comment/changeShow', p) // 修改评论是否显示
